package LuMin.thread_pool;

import java.lang.reflect.Executable;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author lumin
 * @date 2022/04/27 21:18
 **/
public class Demo2 {
    public static void main(String[] args) {
        ExecutorService service = Executors.newFixedThreadPool(3);
        ExecutorService service1 = Executors.newSingleThreadExecutor();
        ExecutorService service2 = Executors.newCachedThreadPool();

        Runnable task = new Runnable() {
            @Override
            public void run() {

            }
        };
        service.execute(task);
    }
}